package com.google.android.exoplayer2.extractor.ts;

import android.util.SparseArray;
import com.google.android.exoplayer2.ParserException;
import java.util.Collections;
import java.util.List;
import o.ady;
import o.anc;
import o.anq;

public interface TsPayloadReader {

    public interface d {
        TsPayloadReader ˎ(int i, b bVar);

        SparseArray<TsPayloadReader> ॱ();
    }

    public static final class a {
        private final int ˊ;
        private final String ˋ;
        private int ˎ;
        private String ˏ;
        private final int ॱ;

        public a(int i, int i2) {
            this(Integer.MIN_VALUE, i, i2);
        }

        public a(int i, int i2, int i3) {
            this.ˋ = i != Integer.MIN_VALUE ? i + "/" : "";
            this.ˊ = i2;
            this.ॱ = i3;
            this.ˎ = Integer.MIN_VALUE;
        }

        public void ˊ() {
            this.ˎ = this.ˎ == Integer.MIN_VALUE ? this.ˊ : this.ˎ + this.ॱ;
            this.ˏ = this.ˋ + this.ˎ;
        }

        public int ˏ() {
            ॱ();
            return this.ˎ;
        }

        public String ˎ() {
            ॱ();
            return this.ˏ;
        }

        private void ॱ() {
            if (this.ˎ == Integer.MIN_VALUE) {
                throw new IllegalStateException("generateNewId() must be called before retrieving ids.");
            }
        }
    }

    public static final class b {
        public final String ˊ;
        public final int ˋ;
        public final List<c> ˎ;
        public final byte[] ˏ;

        public b(int i, String str, List<c> list, byte[] bArr) {
            List emptyList;
            this.ˋ = i;
            this.ˊ = str;
            if (list == null) {
                emptyList = Collections.emptyList();
            } else {
                emptyList = Collections.unmodifiableList(list);
            }
            this.ˎ = emptyList;
            this.ˏ = bArr;
        }
    }

    public static final class c {
        public final int ˊ;
        public final byte[] ˋ;
        public final String ˎ;

        public c(String str, int i, byte[] bArr) {
            this.ˎ = str;
            this.ˊ = i;
            this.ˋ = bArr;
        }
    }

    void ˎ(anq o_anq, ady o_ady, a aVar);

    void ˏ();

    void ॱ(anc o_anc, int i) throws ParserException;
}
